<?php

/**
 * 
 * @author Francesc Sans fsans@ntwk.es
 * @version 1.2.0 (mod 06.NOV.2010)
 * 
 * Copyright (c) 2009 Network BCN Software
 *
	This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 **/

$config = parse_ini_file("config.ini", 1 );

define('ROOT'			, SERVICES_BASE );

define('PACKAGE'		, $config['package'] );

define('HOST'			, $config['host'] );
define('PROTOCOL'		, $config['protocol'] );
define('PORT'			, $config['port'] );
define('FMIURI'			, $config['fmiUri'] );

define('DB_NAME'		, $config['dbName'] );
define('DB_USER'		, $config['dbUser'] );
define('DB_PASS'		, $config['dbPass'] );

define('DB_SOURCE'		, PROTOCOL.HOST.PORT.FMIURI );

define('EXCLUSIONS'		, $config['excludedFields'] ) . "'sku','recid','_explicitType'";
	
define('LOG'			, $config['log']	== 1 ? true : false );
define('DEBUG'			, $config['debug']	== 1 ? true : false );
define('LOG_FILE'		, $config['logpath'] . PACKAGE . '.log' );

define('ADMIN'			, $config['admin'] );
define('ADMIN_EMAIL'	, $config['adminEmail'] );




?>